#include "lxz_config.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "lxz_types.h"
#include "lxz_debug.h"
#include "lxz_runlog.h"
#include "lxz_sysloger.h"
#include "lxz_ring.h"
#include "lxz_string.h"
#include "lxz_dstring.h"
#include "lxz_atc_req.h"
#include "latserver.h"
#include "lxz_dbg_vmem.h"

#ifdef WIN32
#pragma comment(lib, "ws2_32.lib")
#endif

int main(int argc, char *argv[])
{
    int i_ret_val;
    uint16 u_work_port = UDT_SVR_WORK_PORT;

    lxz_runlog_f_init(NULL);
    lxzpcap_sysloger_open(NULL);
    lxz_vmem_f_report();

    i_ret_val = latos_server_main(u_work_port);

    lxz_vmem_f_report();
    lxzpcap_sysloger_close();
    lxz_runlog_f_reset();

    return i_ret_val;
}





